package com.gupao.singletondemo.hungry;

public class Hungry {

    private Hungry() {
    }

    private static Hungry hungry = new Hungry();


    /**
     * 饿汉模式
     * 不管用不用先加载，会占用内存，绝对线程安全
     *
     * @return
     */

    public static Hungry getInstance() {
        return hungry;
    }
}
